﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="OpenSIS.Login" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link rel="Stylesheet" type="text/css" href="App_Themes/main/styles/installation.css" />
    <link rel="Stylesheet" type="text/css" href="App_Themes/main/styles/modal.css" />
    <title>OpenSIS - Login</title>
    <script type="text/javascript">

        function pageLoad() {
        }
    
    </script>
</head>
<body class="login_wrap2">
    <div class="login_bg_grad">
        <table width="100%" cellpadding="0">
            <tr>
                <td style="padding-top: 80px;" align="center">
                    <form id="form1" runat="server">
                    <asp:UpdatePanel ID="updtpanlLogin" runat="server">
                        <ContentTemplate>
                            <asp:ScriptManager ID="ScriptManager1" runat="server" />
                            <table align="center" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="login_screen_wrap" align="center">
                                        <%--table here--%>
                                        <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <div class="login_header">
                                                        <table width="100%" cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td valign="middle" align="left">
                                                                    <div class="padding_gen" style="padding-left: 15px;">
                                                                        <img src="App_Themes/main/images/opensis_logo_new.png" />
                                                                    </div>
                                                                </td>
                                                                <td align="right" valign="top" style="padding-right: 15px; padding-top: 40px;">
                                                                    <span class="white16"><b>Student Information System from OS4Ed</b></span>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                    <div align="center">
                                                        <div class="login_top_grad">
                                                            <div class="login_hue">
                                                                <div>
                                                                    <table width="100%" cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td>
                                                                                <div style="height: 40px;">
                                                                                    <asp:Label ID="lbllogfld" runat="server" CssClass="modal_alert" Visible="false"></asp:Label>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" style="padding-left: 19px;" valign="top">
                                                                                <span style="font-size: 15px; font-weight: bold;">openSIS User Login</span>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <table cellpadding="0" cellspacing="0" width="100%">
                                                                        <tr>
                                                                            <td align="center">
                                                                                <div class="clear_small">
                                                                                </div>
                                                                                <div>
                                                                                    <table border="0" cellpadding="4" cellspacing="0">
                                                                                        <tr>
                                                                                            <td align="right">
                                                                                                <strong>Username</strong>
                                                                                            </td>
                                                                                            <td>
                                                                                                :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:TextBox CssClass="textbox_login" ID="txtUsrnam" runat="server"></asp:TextBox>
                                                                                                <asp:RequiredFieldValidator ID="rqdvalUsernam" runat="server" ControlToValidate="txtUsrnam"
                                                                                                    ErrorMessage="<div class='alert'>Please Enter Username</div>" Display="Dynamic"></asp:RequiredFieldValidator>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="right">
                                                                                                <strong>Password</strong>
                                                                                            </td>
                                                                                            <td>
                                                                                                :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:TextBox CssClass="textbox_login" ID="txtpasswrd" runat="server" TextMode="Password"></asp:TextBox>
                                                                                                <asp:RequiredFieldValidator ID="rqdfldPasswrd" runat="server" ControlToValidate="txtpasswrd"
                                                                                                    ErrorMessage="<div class='alert'>Please Enter Password</div>" Display="Dynamic"></asp:RequiredFieldValidator>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="right">
                                                                                                <strong>Choose your Language</strong>
                                                                                            </td>
                                                                                            <td>
                                                                                                :
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:DropDownList CssClass="dropdown" ID="ddlLang" runat="server">
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td valign="middle" align="left">
                                                                                                <asp:CheckBox ID="chkrem" runat="server" />
                                                                                                Remember Me
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td valign="middle">
                                                                                                <asp:Button CssClass="login_btn_blue" ID="btnloginsis" runat="server" Text="Login"
                                                                                                    OnClick="btnloginsis_Click" />
                                                                                                &nbsp; &nbsp;
                                                                                                <input type="reset" value="Reset" class="login_btn_blue" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                                <div class="clear_small">
                                                                                </div>
                                                                                <div class="clear_small">
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" valign="baseline">
                                                    <div class="login_footer2">
                                                        <table width="100%" cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td align="left" class="login_copyright2">
                                                                    Copyright &copy; 2010, Open Solutions for Education (OS4Ed), Inc.
                                                                </td>
                                                                <td align="right" class="login_copyright2">
                                                                    <a href="http://www.os4ed.com" target="_blank">
                                                                        <img src="App_Themes/main/images/os4ed_promo.png" alt="os4ed logo" /></a>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" class="login_shadow">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                            
                            
                              <asp:Panel ID="panelwronusernm" runat="server" Style="display: none;"
                Width="292" Height="165">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="alert_ltop"></td>
                        <td style="background-color:#fff; border-top:2px solid #645d5d;">&nbsp;</td>
                        <td class="alert_rtop"></td>
                    </tr>
                    <tr>
                        <td style="background-color:#fff; border-left:2px solid #645d5d;">&nbsp;</td>
                        <td class="alert_modal_bg">
                               <div style="text-align:center; padding:20px 0px 10px 0px; "><asp:Label CssClass="modal_alert" ID="Labelinstalled" runat="server" Visible="false"></asp:Label></div>
                        <div class="clear"></div>
                            <div class="separator_hor"></div>
                            <div align="center">
                             <asp:Button ID="btnRedirectInstall" runat="server" CssClass="modalbtn_active" Text="Ok" CausesValidation="false" OnClick="btnRedirectInstall_Click"/>
                            </div>
                        </td>
                        <td style="background-color:#fff; border-right:2px solid #645d5d;">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="alert_lbottom"></td>
                        <td style="background-color:#fff; border-bottom:2px solid #645d5d;">&nbsp;</td>
                        <td class="alert_rbottom"></td>
                    </tr>
                </table>

            </asp:Panel>
            <cc1:ModalPopupExtender ID="mdlpopwronusernm" runat="server" BackgroundCssClass="Inactive"
                TargetControlID="hdn" PopupControlID="panelwronusernm" Enabled="false" />
                
                 <asp:HiddenField ID="hdn" runat="server" />
                 
                            
                            
                            
                            <asp:HiddenField ID="hdnPassword" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    </form>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
